package com.lin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lin.entity.Menu;
import com.lin.entity.Role;
import com.lin.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lin.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Lin
 * @since 2022-03-01
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> findUserPage(@Param("page") IPage<User> page, @Param("userVO") UserVO userVO);
    List<User> findUsers(@Param("userVO") UserVO userVO);

    User loadUserByUsername(@Param("username") String username);

    List<Role> findRolesById(Long id);

}
